<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkStyleContext</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="theming.html" title="Part III. GTK+中的主题">
<link rel="prev" href="theming.html" title="Part III. GTK+中的主题">
<link rel="next" href="gtk3-GtkCssProvider.html" title="GtkCssProvider">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="theming.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="theming.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkCssProvider.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkStyleContext.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkStyleContext.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkStyleContext"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkStyleContext.top_of_page"></a>GtkStyleContext</span></h2>
<p>GtkStyleContext — Rendering UI elements</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkStyleContext.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_COLOR">GTK_STYLE_PROPERTY_BACKGROUND_COLOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-COLOR:CAPS" title="GTK_STYLE_PROPERTY_COLOR">GTK_STYLE_PROPERTY_COLOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-FONT:CAPS" title="GTK_STYLE_PROPERTY_FONT">GTK_STYLE_PROPERTY_FONT</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN">GTK_STYLE_PROPERTY_MARGIN</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING">GTK_STYLE_PROPERTY_PADDING</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH">GTK_STYLE_PROPERTY_BORDER_WIDTH</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS" title="GTK_STYLE_PROPERTY_BORDER_RADIUS">GTK_STYLE_PROPERTY_BORDER_RADIUS</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-STYLE:CAPS" title="GTK_STYLE_PROPERTY_BORDER_STYLE">GTK_STYLE_PROPERTY_BORDER_STYLE</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS" title="GTK_STYLE_PROPERTY_BORDER_COLOR">GTK_STYLE_PROPERTY_BORDER_COLOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BACKGROUND-IMAGE:CAPS" title="GTK_STYLE_PROPERTY_BACKGROUND_IMAGE">GTK_STYLE_PROPERTY_BACKGROUND_IMAGE</a>

#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-BACKGROUND:CAPS" title="GTK_STYLE_CLASS_BACKGROUND">GTK_STYLE_CLASS_BACKGROUND</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-BUTTON:CAPS" title="GTK_STYLE_CLASS_BUTTON">GTK_STYLE_CLASS_BUTTON</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-CALENDAR:CAPS" title="GTK_STYLE_CLASS_CALENDAR">GTK_STYLE_CLASS_CALENDAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-CELL:CAPS" title="GTK_STYLE_CLASS_CELL">GTK_STYLE_CLASS_CELL</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-CHECK:CAPS" title="GTK_STYLE_CLASS_CHECK">GTK_STYLE_CLASS_CHECK</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-DEFAULT:CAPS" title="GTK_STYLE_CLASS_DEFAULT">GTK_STYLE_CLASS_DEFAULT</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-ENTRY:CAPS" title="GTK_STYLE_CLASS_ENTRY">GTK_STYLE_CLASS_ENTRY</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-HEADER:CAPS" title="GTK_STYLE_CLASS_HEADER">GTK_STYLE_CLASS_HEADER</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-MENU:CAPS" title="GTK_STYLE_CLASS_MENU">GTK_STYLE_CLASS_MENU</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-RADIO:CAPS" title="GTK_STYLE_CLASS_RADIO">GTK_STYLE_CLASS_RADIO</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-RUBBERBAND:CAPS" title="GTK_STYLE_CLASS_RUBBERBAND">GTK_STYLE_CLASS_RUBBERBAND</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SCROLLBAR:CAPS" title="GTK_STYLE_CLASS_SCROLLBAR">GTK_STYLE_CLASS_SCROLLBAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SLIDER:CAPS" title="GTK_STYLE_CLASS_SLIDER">GTK_STYLE_CLASS_SLIDER</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-TOOLTIP:CAPS" title="GTK_STYLE_CLASS_TOOLTIP">GTK_STYLE_CLASS_TOOLTIP</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-TROUGH:CAPS" title="GTK_STYLE_CLASS_TROUGH">GTK_STYLE_CLASS_TROUGH</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-ACCELERATOR:CAPS" title="GTK_STYLE_CLASS_ACCELERATOR">GTK_STYLE_CLASS_ACCELERATOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-DOCK:CAPS" title="GTK_STYLE_CLASS_DOCK">GTK_STYLE_CLASS_DOCK</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-GRIP:CAPS" title="GTK_STYLE_CLASS_GRIP">GTK_STYLE_CLASS_GRIP</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-MENUBAR:CAPS" title="GTK_STYLE_CLASS_MENUBAR">GTK_STYLE_CLASS_MENUBAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-MENUITEM:CAPS" title="GTK_STYLE_CLASS_MENUITEM">GTK_STYLE_CLASS_MENUITEM</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-PROGRESSBAR:CAPS" title="GTK_STYLE_CLASS_PROGRESSBAR">GTK_STYLE_CLASS_PROGRESSBAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SPINNER:CAPS" title="GTK_STYLE_CLASS_SPINNER">GTK_STYLE_CLASS_SPINNER</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_TOOLBAR">GTK_STYLE_CLASS_TOOLBAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS" title="GTK_STYLE_CLASS_PRIMARY_TOOLBAR">GTK_STYLE_CLASS_PRIMARY_TOOLBAR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_PANE_SEPARATOR">GTK_STYLE_CLASS_PANE_SEPARATOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SEPARATOR:CAPS" title="GTK_STYLE_CLASS_SEPARATOR">GTK_STYLE_CLASS_SEPARATOR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-DND:CAPS" title="GTK_STYLE_CLASS_DND">GTK_STYLE_CLASS_DND</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-ERROR:CAPS" title="GTK_STYLE_CLASS_ERROR">GTK_STYLE_CLASS_ERROR</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-EXPANDER:CAPS" title="GTK_STYLE_CLASS_EXPANDER">GTK_STYLE_CLASS_EXPANDER</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-FRAME:CAPS" title="GTK_STYLE_CLASS_FRAME">GTK_STYLE_CLASS_FRAME</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-HIGHLIGHT:CAPS" title="GTK_STYLE_CLASS_HIGHLIGHT">GTK_STYLE_CLASS_HIGHLIGHT</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-INFO:CAPS" title="GTK_STYLE_CLASS_INFO">GTK_STYLE_CLASS_INFO</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-MARK:CAPS" title="GTK_STYLE_CLASS_MARK">GTK_STYLE_CLASS_MARK</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-NOTEBOOK:CAPS" title="GTK_STYLE_CLASS_NOTEBOOK">GTK_STYLE_CLASS_NOTEBOOK</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-QUESTION:CAPS" title="GTK_STYLE_CLASS_QUESTION">GTK_STYLE_CLASS_QUESTION</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SCALE:CAPS" title="GTK_STYLE_CLASS_SCALE">GTK_STYLE_CLASS_SCALE</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-SPINBUTTON:CAPS" title="GTK_STYLE_CLASS_SPINBUTTON">GTK_STYLE_CLASS_SPINBUTTON</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-VIEW:CAPS" title="GTK_STYLE_CLASS_VIEW">GTK_STYLE_CLASS_VIEW</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-WARNING:CAPS" title="GTK_STYLE_CLASS_WARNING">GTK_STYLE_CLASS_WARNING</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-HORIZONTAL:CAPS" title="GTK_STYLE_CLASS_HORIZONTAL">GTK_STYLE_CLASS_HORIZONTAL</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-CLASS-VERTICAL:CAPS" title="GTK_STYLE_CLASS_VERTICAL">GTK_STYLE_CLASS_VERTICAL</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-REGION-COLUMN:CAPS" title="GTK_STYLE_REGION_COLUMN">GTK_STYLE_REGION_COLUMN</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-REGION-COLUMN-HEADER:CAPS" title="GTK_STYLE_REGION_COLUMN_HEADER">GTK_STYLE_REGION_COLUMN_HEADER</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-REGION-ROW:CAPS" title="GTK_STYLE_REGION_ROW">GTK_STYLE_REGION_ROW</a>
#define             <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-REGION-TAB:CAPS" title="GTK_STYLE_REGION_TAB">GTK_STYLE_REGION_TAB</a>

struct              <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext">GtkStyleContext</a>;
<a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *   <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-new" title="gtk_style_context_new ()">gtk_style_context_new</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()">gtk_style_context_add_provider</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()">gtk_style_context_add_provider_for_screen</a>
                                                        (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()">gtk_style_context_get</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="returnvalue">GtkTextDirection</span></a>    <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-direction" title="gtk_style_context_get_direction ()">gtk_style_context_get_direction</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="returnvalue">GtkJunctionSides</span></a>    <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-junction-sides" title="gtk_style_context_get_junction_sides ()">gtk_style_context_get_junction_sides</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
const <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="returnvalue">GtkWidgetPath</span></a> * <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-path" title="gtk_style_context_get_path ()">gtk_style_context_get_path</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-property" title="gtk_style_context_get_property ()">gtk_style_context_get_property</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);
<a href="../gdk3/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> *         <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-screen" title="gtk_style_context_get_screen ()">gtk_style_context_get_screen</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="returnvalue">GtkStateFlags</span></a>       <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-state" title="gtk_style_context_get_state ()">gtk_style_context_get_state</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-style" title="gtk_style_context_get_style ()">gtk_style_context_get_style</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-style-property" title="gtk_style_context_get_style_property ()">gtk_style_context_get_style_property</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
                                                         <em class="parameter"><code><a href="../gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-style-valist" title="gtk_style_context_get_style_valist ()">gtk_style_context_get_style_valist</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-valist" title="gtk_style_context_get_valist ()">gtk_style_context_get_valist</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-color" title="gtk_style_context_get_color ()">gtk_style_context_get_color</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-background-color" title="gtk_style_context_get_background_color ()">gtk_style_context_get_background_color</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-border-color" title="gtk_style_context_get_border_color ()">gtk_style_context_get_border_color</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-border" title="gtk_style_context_get_border ()">gtk_style_context_get_border</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-padding" title="gtk_style_context_get_padding ()">gtk_style_context_get_padding</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *padding</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-margin" title="gtk_style_context_get_margin ()">gtk_style_context_get_margin</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *margin</code></em>);
const <a href="../pango/pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get-font" title="gtk_style_context_get_font ()">gtk_style_context_get_font</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-invalidate" title="gtk_style_context_invalidate ()">gtk_style_context_invalidate</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-state-is-running" title="gtk_style_context_state_is_running ()">gtk_style_context_state_is_running</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *progress</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-lookup-color" title="gtk_style_context_lookup_color ()">gtk_style_context_lookup_color</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *color_name</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);
<a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet" title="GtkIconSet"><span class="returnvalue">GtkIconSet</span></a> *        <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-lookup-icon-set" title="gtk_style_context_lookup_icon_set ()">gtk_style_context_lookup_icon_set</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()">gtk_style_context_notify_state_change</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state_value</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()">gtk_style_context_pop_animatable_region</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()">gtk_style_context_push_animatable_region</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-cancel-animations" title="gtk_style_context_cancel_animations ()">gtk_style_context_cancel_animations</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-scroll-animations" title="gtk_style_context_scroll_animations ()">gtk_style_context_scroll_animations</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dx</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dy</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-provider" title="gtk_style_context_remove_provider ()">gtk_style_context_remove_provider</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-provider-for-screen" title="gtk_style_context_remove_provider_for_screen ()">gtk_style_context_remove_provider_for_screen</a>
                                                        (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-reset-widgets" title="gtk_style_context_reset_widgets ()">gtk_style_context_reset_widgets</a>     (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-background" title="gtk_style_context_set_background ()">gtk_style_context_set_background</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()">gtk_style_context_restore</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-save" title="gtk_style_context_save ()">gtk_style_context_save</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-direction" title="gtk_style_context_set_direction ()">gtk_style_context_set_direction</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> direction</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-junction-sides" title="gtk_style_context_set_junction_sides ()">gtk_style_context_set_junction_sides</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="type">GtkJunctionSides</span></a> sides</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()">gtk_style_context_set_path</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> *path</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-class" title="gtk_style_context_add_class ()">gtk_style_context_add_class</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-class" title="gtk_style_context_remove_class ()">gtk_style_context_remove_class</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-has-class" title="gtk_style_context_has_class ()">gtk_style_context_has_class</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-list-classes" title="gtk_style_context_list_classes ()">gtk_style_context_list_classes</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-region" title="gtk_style_context_add_region ()">gtk_style_context_add_region</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> flags</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-region" title="gtk_style_context_remove_region ()">gtk_style_context_remove_region</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-has-region" title="gtk_style_context_has_region ()">gtk_style_context_has_region</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> *flags_return</code></em>);
<a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-list-regions" title="gtk_style_context_list_regions ()">gtk_style_context_list_regions</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-screen" title="gtk_style_context_set_screen ()">gtk_style_context_set_screen</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-state" title="gtk_style_context_set_state ()">gtk_style_context_set_state</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> flags</code></em>);

struct              <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder">GtkBorder</a>;
<a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *         <a class="link" href="gtk3-GtkStyleContext.html#gtk-border-new" title="gtk_border_new ()">gtk_border_new</a>                      (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *         <a class="link" href="gtk3-GtkStyleContext.html#gtk-border-copy" title="gtk_border_copy ()">gtk_border_copy</a>                     (<em class="parameter"><code>const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-border-free" title="gtk_border_free ()">gtk_border_free</a>                     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);

<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-arrow" title="gtk_render_arrow ()">gtk_render_arrow</a>                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> angle</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> size</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-background" title="gtk_render_background ()">gtk_render_background</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-check" title="gtk_render_check ()">gtk_render_check</a>                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-expander" title="gtk_render_expander ()">gtk_render_expander</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-extension" title="gtk_render_extension ()">gtk_render_extension</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-focus" title="gtk_render_focus ()">gtk_render_focus</a>                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()">gtk_render_frame</a>                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-frame-gap" title="gtk_render_frame_gap ()">gtk_render_frame_gap</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy0_gap</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy1_gap</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-handle" title="gtk_render_handle ()">gtk_render_handle</a>                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-layout" title="gtk_render_layout ()">gtk_render_layout</a>                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-line" title="gtk_render_line ()">gtk_render_line</a>                     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-option" title="gtk_render_option ()">gtk_render_option</a>                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-slider" title="gtk_render_slider ()">gtk_render_slider</a>                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-activity" title="gtk_render_activity ()">gtk_render_activity</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);
<a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         <a class="link" href="gtk3-GtkStyleContext.html#gtk-render-icon-pixbuf" title="gtk_render_icon_pixbuf ()">gtk_render_icon_pixbuf</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> *source</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkStyleContext.description"></a><h2>Description</h2>
<p>
<a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> is an object that stores styling information affecting
a widget defined by <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>.
</p>
<p>
In order to construct the final style information, <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
queries information from all attached <a href="gtk3-GtkStyleProvider.html#GtkStyleProvider"><span class="type">GtkStyleProviders</span></a>. Style providers
can be either attached explicitly to the context through
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()"><code class="function">gtk_style_context_add_provider()</code></a>, or to the screen through
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()"><code class="function">gtk_style_context_add_provider_for_screen()</code></a>. The resulting style is a
combination of all providers' information in priority order.
</p>
<p>
For GTK+ widgets, any <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned by
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a> will already have a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>, a
<a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> and RTL/LTR information set. The style context will be also
updated automatically if any of these settings change on the widget.
</p>
<p>
If you are using the theming layer standalone, you will need to set a
widget path and a screen yourself to the created style context through
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()"><code class="function">gtk_style_context_set_path()</code></a> and <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-screen" title="gtk_style_context_set_screen ()"><code class="function">gtk_style_context_set_screen()</code></a>, as well
as updating the context yourself using <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-invalidate" title="gtk_style_context_invalidate ()"><code class="function">gtk_style_context_invalidate()</code></a>
whenever any of the conditions change, such as a change in the
<span class="type">"gtk-theme-name"</span> setting or a hierarchy change in the rendered
widget.
</p>
<p>
</p>
<div class="refsect2">
<a name="gtkstylecontext-animations"></a><h3>Transition animations</h3>
<p>
<a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> has built-in support for state change transitions.
Note that these animations respect the <span class="type">"gtk-enable-animations"</span>
setting.
</p>
<p>
For simple widgets where state changes affect the whole widget area,
calling <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> with a <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region
is sufficient to trigger the transition animation. And GTK+ already
does that when <a class="link" href="gtk3-GtkWidget.html#gtk-widget-set-state" title="gtk_widget_set_state ()"><code class="function">gtk_widget_set_state()</code></a> or <a class="link" href="gtk3-GtkWidget.html#gtk-widget-set-state-flags" title="gtk_widget_set_state_flags ()"><code class="function">gtk_widget_set_state_flags()</code></a>
are called.
</p>
<p>
If a widget needs to declare several animatable regions (i.e. not
affecting the whole widget area), its <span class="type">"draw"</span> signal handler
needs to wrap the render operations for the different regions with
calls to <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a> and
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()"><code class="function">gtk_style_context_pop_animatable_region()</code></a>. These functions take an
identifier for the region which must be unique within the style context.
For simple widgets with a fixed set of animatable regions, using an
enumeration works well:
</p>
<div class="example">
<a name="id3234985"></a><p class="title"><b>Example 9. Using an enumeration to identify  animatable regions</b></p>
<div class="example-contents"><pre class="programlisting">
enum {
  REGION_ENTRY,
  REGION_BUTTON_UP,
  REGION_BUTTON_DOWN
};

...

gboolean
spin_button_draw (GtkWidget *widget,
                  cairo_t   *cr)
{
  GtkStyleContext *context;

  context = gtk_widget_get_style_context (widget);

  gtk_style_context_push_animatable_region (context,
                                            GUINT_TO_POINTER (REGION_ENTRY));

  gtk_render_background (cr, 0, 0, 100, 30);
  gtk_render_frame (cr, 0, 0, 100, 30);

  gtk_style_context_pop_animatable_region (context);

  ...
}
</pre></div>
</div>
<br class="example-break"><p>
For complex widgets with an arbitrary number of animatable regions, it
is up to the implementation to come up with a way to uniquely identify
each animatable region. Using pointers to internal structs is one way
to achieve this:
</p>
<div class="example">
<a name="id3235017"></a><p class="title"><b>Example 10. Using struct pointers to identify animatable regions</b></p>
<div class="example-contents"><pre class="programlisting">
void
notebook_draw_tab (GtkWidget    *widget,
                   NotebookPage *page,
                   cairo_t      *cr)
{
  gtk_style_context_push_animatable_region (context, page);
  gtk_render_extension (cr, page-&gt;x, page-&gt;y, page-&gt;width, page-&gt;height);
  gtk_style_context_pop_animatable_region (context);
}
</pre></div>
</div>
<br class="example-break"><p>
The widget also needs to notify the style context about a state change
for a given animatable region so the animation is triggered.
</p>
<div class="example">
<a name="id3235044"></a><p class="title"><b>Example 11. Triggering a state change animation on a region</b></p>
<div class="example-contents"><pre class="programlisting">
gboolean
notebook_motion_notify (GtkWidget      *widget,
                        GdkEventMotion *event)
{
  GtkStyleContext *context;
  NotebookPage *page;

  context = gtk_widget_get_style_context (widget);
  page = find_page_under_pointer (widget, event);
  gtk_style_context_notify_state_change (context,
                                         gtk_widget_get_window (widget),
                                         page,
                                         GTK_STATE_PRELIGHT,
                                         TRUE);
  ...
}
</pre></div>
</div>
<br class="example-break"><p>
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> accepts <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region IDs as a
special value, in this case, the whole widget area will be updated
by the animation.
</p>
</div>
<p>
</p>
<hr>
<div class="refsect2">
<a name="gtkstylecontext-classes"></a><h3>Style classes and regions</h3>
<p>
Widgets can add style classes to their context, which can be used
to associate different styles by class (see <a class="xref" href="gtk3-GtkCssProvider.html#gtkcssprovider-selectors" title="Selectors">the section called “Selectors”</a>). Theme engines can also use style classes to vary their
rendering. GTK+ has a number of predefined style classes:
</p>
<div class="informaltable"><table border="1">
<colgroup>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Style class</th>
<th>Macro</th>
<th>Used by</th>
</tr></thead>
<tbody>
<tr>
<td>button</td>
<td>GTK_STYLE_CLASS_BUTTON</td>
<td>
<a class="link" href="gtk3-GtkButton.html#GtkButton" title="struct GtkButton"><span class="type">GtkButton</span></a>, <a class="link" href="gtk3-GtkToggleButton.html#GtkToggleButton" title="struct GtkToggleButton"><span class="type">GtkToggleButton</span></a>, <a class="link" href="gtk3-GtkRadioButton.html#GtkRadioButton" title="struct GtkRadioButton"><span class="type">GtkRadioButton</span></a>, <a class="link" href="gtk3-GtkCheckButton.html#GtkCheckButton" title="struct GtkCheckButton"><span class="type">GtkCheckButton</span></a>
</td>
</tr>
<tr>
<td>default</td>
<td>GTK_STYLE_CLASS_DEFAULT</td>
<td><a class="link" href="gtk3-GtkButton.html#GtkButton" title="struct GtkButton"><span class="type">GtkButton</span></a></td>
</tr>
<tr>
<td>check</td>
<td>GTK_STYLE_CLASS_CHECK</td>
<td>
<a class="link" href="gtk3-GtkCheckButton.html#GtkCheckButton" title="struct GtkCheckButton"><span class="type">GtkCheckButton</span></a>, <a class="link" href="gtk3-gtkcheckmenuitem.html#GtkCheckMenuItem" title="struct GtkCheckMenuItem"><span class="type">GtkCheckMenuItem</span></a>, <a class="link" href="gtk3-GtkCellRendererToggle.html#GtkCellRendererToggle" title="struct GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>
</td>
</tr>
<tr>
<td>radio</td>
<td>GTK_STYLE_CLASS_RADIO</td>
<td>
<a class="link" href="gtk3-GtkRadioButton.html#GtkRadioButton" title="struct GtkRadioButton"><span class="type">GtkRadioButton</span></a>, <a class="link" href="gtk3-GtkRadioMenuItem.html#GtkRadioMenuItem" title="struct GtkRadioMenuItem"><span class="type">GtkRadioMenuItem</span></a>, <a class="link" href="gtk3-GtkCellRendererToggle.html#GtkCellRendererToggle" title="struct GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a>
</td>
</tr>
<tr>
<td>arrow</td>
<td>GTK_STYLE_CLASS_ARROW</td>
<td><a class="link" href="gtk3-GtkArrow.html#GtkArrow" title="struct GtkArrow"><span class="type">GtkArrow</span></a></td>
</tr>
<tr>
<td>calendar</td>
<td>GTK_STYLE_CLASS_CALENDAR</td>
<td><a class="link" href="gtk3-GtkCalendar.html#GtkCalendar" title="struct GtkCalendar"><span class="type">GtkCalendar</span></a></td>
</tr>
<tr>
<td>entry</td>
<td>GTK_STYLE_CLASS_ENTRY</td>
<td><a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a></td>
</tr>
<tr>
<td>cell</td>
<td>GTK_STYLE_CLASS_CELL</td>
<td><a class="link" href="gtk3-GtkCellRendererToggle.html#GtkCellRendererToggle" title="struct GtkCellRendererToggle"><span class="type">GtkCellRendererToggle</span></a></td>
</tr>
<tr>
<td>menu</td>
<td>GTK_STYLE_CLASS_MENU</td>
<td>
<a class="link" href="gtk3-GtkMenu.html#GtkMenu" title="struct GtkMenu"><span class="type">GtkMenu</span></a>, <a class="link" href="gtk3-GtkMenuItem.html#GtkMenuItem" title="struct GtkMenuItem"><span class="type">GtkMenuItem</span></a>, <a class="link" href="gtk3-gtkcheckmenuitem.html#GtkCheckMenuItem" title="struct GtkCheckMenuItem"><span class="type">GtkCheckMenuItem</span></a>, <a class="link" href="gtk3-GtkRadioMenuItem.html#GtkRadioMenuItem" title="struct GtkRadioMenuItem"><span class="type">GtkRadioMenuItem</span></a>
</td>
</tr>
<tr>
<td>expander</td>
<td>GTK_STYLE_CLASS_EXPANDER</td>
<td><a class="link" href="gtk3-GtkExpander.html#GtkExpander" title="struct GtkExpander"><span class="type">GtkExpander</span></a></td>
</tr>
<tr>
<td>tooltip</td>
<td>GTK_STYLE_CLASS_TOOLTIP</td>
<td><a class="link" href="gtk3-GtkTooltip.html#GtkTooltip" title="GtkTooltip"><span class="type">GtkTooltip</span></a></td>
</tr>
<tr>
<td>frame</td>
<td>GTK_STYLE_CLASS_FRAME</td>
<td><a class="link" href="gtk3-GtkFrame.html#GtkFrame" title="struct GtkFrame"><span class="type">GtkFrame</span></a></td>
</tr>
<tr>
<td>scrolled-window</td>
<td> </td>
<td><a class="link" href="gtk3-GtkScrolledWindow.html#GtkScrolledWindow" title="struct GtkScrolledWindow"><span class="type">GtkScrolledWindow</span></a></td>
</tr>
<tr>
<td>viewport</td>
<td> </td>
<td><a class="link" href="gtk3-GtkViewport.html#GtkViewport" title="struct GtkViewport"><span class="type">GtkViewport</span></a></td>
</tr>
<tr>
<td>trough</td>
<td>GTK_STYLE_CLASS_TROUGH</td>
<td>
<a class="link" href="gtk3-GtkScrollbar.html#GtkScrollbar" title="struct GtkScrollbar"><span class="type">GtkScrollbar</span></a>, <a class="link" href="gtk3-GtkProgressBar.html#GtkProgressBar" title="struct GtkProgressBar"><span class="type">GtkProgressBar</span></a>, <a class="link" href="gtk3-GtkScale.html#GtkScale" title="struct GtkScale"><span class="type">GtkScale</span></a>
</td>
</tr>
<tr>
<td>progressbar</td>
<td>GTK_STYLE_CLASS_PROGRESSBAR</td>
<td>
<a class="link" href="gtk3-GtkProgressBar.html#GtkProgressBar" title="struct GtkProgressBar"><span class="type">GtkProgressBar</span></a>, <a class="link" href="gtk3-GtkCellRendererProgress.html#GtkCellRendererProgress" title="struct GtkCellRendererProgress"><span class="type">GtkCellRendererProgress</span></a>
</td>
</tr>
<tr>
<td>slider</td>
<td>GTK_STYLE_CLASS_SLIDER</td>
<td>
<a class="link" href="gtk3-GtkScrollbar.html#GtkScrollbar" title="struct GtkScrollbar"><span class="type">GtkScrollbar</span></a>, <a class="link" href="gtk3-GtkScale.html#GtkScale" title="struct GtkScale"><span class="type">GtkScale</span></a>
</td>
</tr>
<tr>
<td>menuitem</td>
<td>GTK_STYLE_CLASS_MENUITEM</td>
<td><a class="link" href="gtk3-GtkMenuItem.html#GtkMenuItem" title="struct GtkMenuItem"><span class="type">GtkMenuItem</span></a></td>
</tr>
<tr>
<td>popup</td>
<td> </td>
<td><a class="link" href="gtk3-GtkMenu.html#GtkMenu" title="struct GtkMenu"><span class="type">GtkMenu</span></a></td>
</tr>
<tr>
<td>accelerator</td>
<td>GTK_STYLE_CLASS_ACCELERATOR</td>
<td><a class="link" href="gtk3-GtkAccelLabel.html#GtkAccelLabel" title="struct GtkAccelLabel"><span class="type">GtkAccelLabel</span></a></td>
</tr>
<tr>
<td>menubar</td>
<td>GTK_STYLE_CLASS_MENUBAR</td>
<td><a class="link" href="gtk3-GtkMenuBar.html#GtkMenuBar" title="struct GtkMenuBar"><span class="type">GtkMenuBar</span></a></td>
</tr>
<tr>
<td>toolbar</td>
<td>GTK_STYLE_CLASS_TOOLBAR</td>
<td><a class="link" href="gtk3-GtkToolbar.html#GtkToolbar" title="struct GtkToolbar"><span class="type">GtkToolbar</span></a></td>
</tr>
<tr>
<td>dock</td>
<td>GTK_STYLE_CLASS_DOCK</td>
<td><a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a></td>
</tr>
<tr>
<td>notebook</td>
<td> </td>
<td><a class="link" href="gtk3-GtkNotebook.html#GtkNotebook" title="struct GtkNotebook"><span class="type">GtkNotebook</span></a></td>
</tr>
<tr>
<td>background</td>
<td>GTK_STYLE_CLASS_BACKGROUND</td>
<td><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a></td>
</tr>
<tr>
<td>rubberband</td>
<td>GTK_STYLE_CLASS_RUBBERBAND</td>
<td> </td>
</tr>
<tr>
<td>header</td>
<td>GTK_STYLE_CLASS_HEADER</td>
<td> </td>
</tr>
<tr>
<td>grip</td>
<td>GTK_STYLE_CLASS_GRIP</td>
<td><a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a></td>
</tr>
<tr>
<td>spinner</td>
<td>GTK_STYLE_CLASS_SPINNER</td>
<td><a class="link" href="gtk3-GtkSpinner.html#GtkSpinner" title="struct GtkSpinner"><span class="type">GtkSpinner</span></a></td>
</tr>
</tbody>
</table></div>
<p>
</p>
<p>
Widgets can also add regions with flags to their context.
The regions used by GTK+ widgets are:
</p>
<div class="informaltable"><table border="1">
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<thead><tr>
<th>Region</th>
<th>Flags</th>
<th>Macro</th>
<th>Used by</th>
</tr></thead>
<tbody>
<tr>
<td>row</td>
<td>even, odd</td>
<td>GTK_STYLE_REGION_ROW</td>
<td><a class="link" href="gtk3-GtkTreeView.html#GtkTreeView" title="struct GtkTreeView"><span class="type">GtkTreeView</span></a></td>
</tr>
<tr>
<td>column</td>
<td>first, last, sorted</td>
<td>GTK_STYLE_REGION_COLUMN</td>
<td><a class="link" href="gtk3-GtkTreeView.html#GtkTreeView" title="struct GtkTreeView"><span class="type">GtkTreeView</span></a></td>
</tr>
<tr>
<td>column-header</td>
<td> </td>
<td>GTK_STYLE_REGION_COLUMN_HEADER</td>
<td> </td>
</tr>
<tr>
<td>tab</td>
<td>even, odd, first, last</td>
<td>GTK_STYLE_REGION_TAB</td>
<td><a class="link" href="gtk3-GtkNotebook.html#GtkNotebook" title="struct GtkNotebook"><span class="type">GtkNotebook</span></a></td>
</tr>
</tbody>
</table></div>
<p>
</p>
</div>
<p>
</p>
<hr>
<div class="refsect2">
<a name="gtkstylecontext-custom-styling"></a><h3>Custom styling in UI libraries and applications</h3>
<p>
If you are developing a library with custom <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>s that
render differently than standard components, you may need to add a
<a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> yourself with the <a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a>
priority, either a <a class="link" href="gtk3-GtkCssProvider.html#GtkCssProvider" title="struct GtkCssProvider"><span class="type">GtkCssProvider</span></a> or a custom object implementing the
<a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> interface. This way theming engines may still attempt
to style your UI elements in a different way if needed so.
</p>
<p>
If you are using custom styling on an applications, you probably want then
to make your style information prevail to the theme's, so you must use
a <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> with the <a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-APPLICATION:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_APPLICATION"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_APPLICATION</code></a>
priority, keep in mind that the user settings in
<code class="filename"><em class="replaceable"><code>XDG_CONFIG_HOME</code></em>/gtk-3.0/gtk.css</code> will
still take precedence over your changes, as it uses the
<a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a> priority.
</p>
<p>
If a custom theming engine is needed, you probably want to implement a
<a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> yourself so it points to your <a class="link" href="gtk3-GtkThemingEngine.html#GtkThemingEngine" title="struct GtkThemingEngine"><span class="type">GtkThemingEngine</span></a>
implementation, as <a class="link" href="gtk3-GtkCssProvider.html#GtkCssProvider" title="struct GtkCssProvider"><span class="type">GtkCssProvider</span></a> uses <a class="link" href="gtk3-GtkThemingEngine.html#gtk-theming-engine-load" title="gtk_theming_engine_load ()"><code class="function">gtk_theming_engine_load()</code></a>
which loads the theming engine module from the standard paths.
</p>
</div>
<p>
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkStyleContext.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BACKGROUND-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BACKGROUND_COLOR</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BACKGROUND_COLOR "background-color"
</pre>
<p>
A property holding the background color of rendered elements as a <a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_COLOR</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_COLOR "color"
</pre>
<p>
A property holding the foreground color of rendered elements as a <a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-FONT:CAPS"></a><h3>GTK_STYLE_PROPERTY_FONT</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_FONT "font"
</pre>
<p>
A property holding the font properties used when rendering text
as a <a href="../pango/pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-MARGIN:CAPS"></a><h3>GTK_STYLE_PROPERTY_MARGIN</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_MARGIN "margin"
</pre>
<p>
A property holding the rendered element's margin as a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>. The
margin is defined as the spacing between the border of the element
and its surrounding elements. It is external to <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>s's
size allocations, and the most external spacing property of the
padding/border/margin series.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-PADDING:CAPS"></a><h3>GTK_STYLE_PROPERTY_PADDING</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_PADDING "padding"
</pre>
<p>
A property holding the rendered element's padding as a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>. The
padding is defined as the spacing between the inner part of the element border
and its child. It's the innermost spacing property of the padding/border/margin
series.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_WIDTH</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_WIDTH "border-width"
</pre>
<p>
A property holding the rendered element's border width in pixels as
a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>. The border is the intermediary spacing property of the
padding/border/margin series.
</p>
<p>
<a class="link" href="gtk3-GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a> uses this property to find out the frame line width,
so <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>s rendering frames may need to add up this padding when
requesting size
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BORDER-RADIUS:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_RADIUS</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_RADIUS "border-radius"
</pre>
<p>
A property holding the rendered element's border radius in pixels as a <a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BORDER-STYLE:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_STYLE</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_STYLE "border-style"
</pre>
<p>
A property holding the element's border style as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkBorderStyle" title="enum GtkBorderStyle"><span class="type">GtkBorderStyle</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BORDER-COLOR:CAPS"></a><h3>GTK_STYLE_PROPERTY_BORDER_COLOR</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BORDER_COLOR "border-color"
</pre>
<p>
A property holding the element's border color as a <a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-PROPERTY-BACKGROUND-IMAGE:CAPS"></a><h3>GTK_STYLE_PROPERTY_BACKGROUND_IMAGE</h3>
<pre class="programlisting">#define GTK_STYLE_PROPERTY_BACKGROUND_IMAGE "background-image"
</pre>
<p>
A property holding the element's background as a <a href="../cairo/cairo-cairo-pattern-t.html#cairo-pattern-t"><span class="type">cairo_pattern_t</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-BACKGROUND:CAPS"></a><h3>GTK_STYLE_CLASS_BACKGROUND</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_BACKGROUND "background"
</pre>
<p>
A CSS class to match the window background.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-BUTTON:CAPS"></a><h3>GTK_STYLE_CLASS_BUTTON</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_BUTTON "button"
</pre>
<p>
A CSS class to match buttons.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CALENDAR:CAPS"></a><h3>GTK_STYLE_CLASS_CALENDAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CALENDAR "calendar"
</pre>
<p>
A CSS class to match calendars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CELL:CAPS"></a><h3>GTK_STYLE_CLASS_CELL</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CELL "cell"
</pre>
<p>
A CSS class to match content rendered in cell views.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-CHECK:CAPS"></a><h3>GTK_STYLE_CLASS_CHECK</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_CHECK "check"
</pre>
<p>
A CSS class to match check boxes.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-DEFAULT:CAPS"></a><h3>GTK_STYLE_CLASS_DEFAULT</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_DEFAULT "default"
</pre>
<p>
A CSS class to match the default widget.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-ENTRY:CAPS"></a><h3>GTK_STYLE_CLASS_ENTRY</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_ENTRY "entry"
</pre>
<p>
A CSS class to match text entries.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-HEADER:CAPS"></a><h3>GTK_STYLE_CLASS_HEADER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_HEADER "header"
</pre>
<p>
A CSS class to match a header element.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MENU:CAPS"></a><h3>GTK_STYLE_CLASS_MENU</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MENU "menu"
</pre>
<p>
A CSS class to match popup menus.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-RADIO:CAPS"></a><h3>GTK_STYLE_CLASS_RADIO</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_RADIO "radio"
</pre>
<p>
A CSS class to match radio buttons.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-RUBBERBAND:CAPS"></a><h3>GTK_STYLE_CLASS_RUBBERBAND</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_RUBBERBAND "rubberband"
</pre>
<p>
A CSS class to match the rubberband selection rectangle.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SCROLLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_SCROLLBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SCROLLBAR "scrollbar"
</pre>
<p>
A CSS class to match scrollbars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SLIDER:CAPS"></a><h3>GTK_STYLE_CLASS_SLIDER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SLIDER "slider"
</pre>
<p>
A CSS class to match sliders.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TOOLTIP:CAPS"></a><h3>GTK_STYLE_CLASS_TOOLTIP</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TOOLTIP "tooltip"
</pre>
<p>
A CSS class to match tooltip windows.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TROUGH:CAPS"></a><h3>GTK_STYLE_CLASS_TROUGH</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TROUGH "trough"
</pre>
<p>
A CSS class to match troughs, as in scrollbars and progressbars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-ACCELERATOR:CAPS"></a><h3>GTK_STYLE_CLASS_ACCELERATOR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_ACCELERATOR "accelerator"
</pre>
<p>
A CSS class to match an accelerator.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-DOCK:CAPS"></a><h3>GTK_STYLE_CLASS_DOCK</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_DOCK "dock"
</pre>
<p>
A widget class defining a dock area
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-GRIP:CAPS"></a><h3>GTK_STYLE_CLASS_GRIP</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_GRIP "grip"
</pre>
<p>
A widget class defining a resize grip
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MENUBAR:CAPS"></a><h3>GTK_STYLE_CLASS_MENUBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MENUBAR "menubar"
</pre>
<p>
A CSS class to menubars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MENUITEM:CAPS"></a><h3>GTK_STYLE_CLASS_MENUITEM</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MENUITEM "menuitem"
</pre>
<p>
A CSS class to match menu items.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-PROGRESSBAR:CAPS"></a><h3>GTK_STYLE_CLASS_PROGRESSBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_PROGRESSBAR "progressbar"
</pre>
<p>
A widget class defining a resize grip
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SPINNER:CAPS"></a><h3>GTK_STYLE_CLASS_SPINNER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SPINNER "spinner"
</pre>
<p>
A widget class defining a spinner
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-TOOLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_TOOLBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_TOOLBAR "toolbar"
</pre>
<p>
A CSS class to match toolbars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-PRIMARY-TOOLBAR:CAPS"></a><h3>GTK_STYLE_CLASS_PRIMARY_TOOLBAR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_PRIMARY_TOOLBAR "primary-toolbar"
</pre>
<p>
A CSS class to match primary toolbars.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-PANE-SEPARATOR:CAPS"></a><h3>GTK_STYLE_CLASS_PANE_SEPARATOR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_PANE_SEPARATOR "pane-separator"
</pre>
<p>
A CSS class for a pane separator, such as those in <a class="link" href="gtk3-GtkPaned.html#GtkPaned" title="struct GtkPaned"><span class="type">GtkPaned</span></a>.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SEPARATOR:CAPS"></a><h3>GTK_STYLE_CLASS_SEPARATOR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SEPARATOR "separator"
</pre>
<p>
A CSS class for a separator.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-DND:CAPS"></a><h3>GTK_STYLE_CLASS_DND</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_DND "dnd"
</pre>
<p>
A CSS class for a drag-and-drop indicator
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-ERROR:CAPS"></a><h3>GTK_STYLE_CLASS_ERROR</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_ERROR "error"
</pre>
<p>
A widget class for an area displaying an error message,
such as those in infobars
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-EXPANDER:CAPS"></a><h3>GTK_STYLE_CLASS_EXPANDER</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_EXPANDER "expander"
</pre>
<p>
A widget class defining an expander, such as those in treeviews
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-FRAME:CAPS"></a><h3>GTK_STYLE_CLASS_FRAME</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_FRAME "frame"
</pre>
<p>
A CSS class defining a frame delimiting content, such as GtkFrame
or the scrolled window frame around the scrollable area.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-HIGHLIGHT:CAPS"></a><h3>GTK_STYLE_CLASS_HIGHLIGHT</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_HIGHLIGHT "highlight"
</pre>
<p>
A CSS class defining a highlighted area, such as headings in
assistants.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-INFO:CAPS"></a><h3>GTK_STYLE_CLASS_INFO</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_INFO "info"
</pre>
<p>
A widget class for an area displaying an informational message,
such as those in infobars
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-MARK:CAPS"></a><h3>GTK_STYLE_CLASS_MARK</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_MARK "mark"
</pre>
<p>
A widget class defining marks in a widget, such as in scales
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-NOTEBOOK:CAPS"></a><h3>GTK_STYLE_CLASS_NOTEBOOK</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_NOTEBOOK "notebook"
</pre>
<p>
A widget class defining a notebook
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-QUESTION:CAPS"></a><h3>GTK_STYLE_CLASS_QUESTION</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_QUESTION "question"
</pre>
<p>
A widget class for an area displaying a question to the user,
such as those in infobars
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SCALE:CAPS"></a><h3>GTK_STYLE_CLASS_SCALE</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SCALE "scale"
</pre>
<p>
A CSS class to match scale widgets.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-SPINBUTTON:CAPS"></a><h3>GTK_STYLE_CLASS_SPINBUTTON</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_SPINBUTTON "spinbutton"
</pre>
<p>
A widget class defining an spinbutton
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-VIEW:CAPS"></a><h3>GTK_STYLE_CLASS_VIEW</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_VIEW "view"
</pre>
<p>
A widget class defining a view, such as iconviews or treeviews
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-WARNING:CAPS"></a><h3>GTK_STYLE_CLASS_WARNING</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_WARNING "warning"
</pre>
<p>
A widget class for an area displaying a warning message,
such as those in infobars
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-HORIZONTAL:CAPS"></a><h3>GTK_STYLE_CLASS_HORIZONTAL</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_HORIZONTAL "horizontal"
</pre>
<p>
A widget class for horizontally layered widgets.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-CLASS-VERTICAL:CAPS"></a><h3>GTK_STYLE_CLASS_VERTICAL</h3>
<pre class="programlisting">#define GTK_STYLE_CLASS_VERTICAL "vertical"
</pre>
<p>
A widget class for vertically layered widgets.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-REGION-COLUMN:CAPS"></a><h3>GTK_STYLE_REGION_COLUMN</h3>
<pre class="programlisting">#define GTK_STYLE_REGION_COLUMN "column"
</pre>
<p>
A widget region name to define a treeview column.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-REGION-COLUMN-HEADER:CAPS"></a><h3>GTK_STYLE_REGION_COLUMN_HEADER</h3>
<pre class="programlisting">#define GTK_STYLE_REGION_COLUMN_HEADER "column-header"
</pre>
<p>
A widget region name to define a treeview column header.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-REGION-ROW:CAPS"></a><h3>GTK_STYLE_REGION_ROW</h3>
<pre class="programlisting">#define GTK_STYLE_REGION_ROW "row"
</pre>
<p>
A widget region name to define a treeview row.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GTK-STYLE-REGION-TAB:CAPS"></a><h3>GTK_STYLE_REGION_TAB</h3>
<pre class="programlisting">#define GTK_STYLE_REGION_TAB "tab"
</pre>
<p>
A widget region name to define a notebook tab.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkStyleContext"></a><h3>struct GtkStyleContext</h3>
<pre class="programlisting">struct GtkStyleContext {
  GObject parent_object;
  GtkStyleContextPrivate *priv;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-new"></a><h3>gtk_style_context_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="returnvalue">GtkStyleContext</span></a> *   gtk_style_context_new               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a standalone <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>, this style context
won't be attached to any widget, so you may want
to call <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-path" title="gtk_style_context_set_path ()"><code class="function">gtk_style_context_set_path()</code></a> yourself.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
This function is only useful when using the theming layer
separated from GTK+, if you are using <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> to
theme <a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="type">GtkWidget</span></a>s, use <a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>
in order to get a style context ready to theme the widget.
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly created <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-add-provider"></a><h3>gtk_style_context_add_provider ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_add_provider      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre>
<p>
Adds a style provider to <em class="parameter"><code>context</code></em>, to be used in style construction.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>If both priorities are the same, A <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
added through this function takes precedence over another added
through <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider-for-screen" title="gtk_style_context_add_provider_for_screen ()"><code class="function">gtk_style_context_add_provider_for_screen()</code></a>.</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td>
<td>the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between <a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a> and
<a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-add-provider-for-screen"></a><h3>gtk_style_context_add_provider_for_screen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_add_provider_for_screen
                                                        (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> priority</code></em>);</pre>
<p>
Adds a global style provider to <em class="parameter"><code>screen</code></em>, which will be used
in style construction for all <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>s under
<em class="parameter"><code>screen</code></em>.
</p>
<p>
GTK+ uses this to make styling information from <a class="link" href="gtk3-GtkSettings.html#GtkSettings" title="GtkSettings"><span class="type">GtkSettings</span></a>
available.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>If both priorities are the same, A <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
added through <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-provider" title="gtk_style_context_add_provider ()"><code class="function">gtk_style_context_add_provider()</code></a> takes precedence
over another added through this function.</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>priority</code></em> :</span></p></td>
<td>the priority of the style provider. The lower
it is, the earlier it will be used in the style
construction. Typically this will be in the range
between <a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-FALLBACK:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_FALLBACK"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_FALLBACK</code></a> and
<a class="link" href="gtk3-GtkStyleProvider.html#GTK-STYLE-PROVIDER-PRIORITY-USER:CAPS" title="GTK_STYLE_PROVIDER_PRIORITY_USER"><code class="literal">GTK_STYLE_PROVIDER_PRIORITY_USER</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get"></a><h3>gtk_style_context_get ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get               (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Retrieves several style property values from <em class="parameter"><code>context</code></em> for a
given state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the property values for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>property name /return value pairs, followed by <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-direction"></a><h3>gtk_style_context_get_direction ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="returnvalue">GtkTextDirection</span></a>    gtk_style_context_get_direction     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the widget direction used for rendering.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the widget direction</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-junction-sides"></a><h3>gtk_style_context_get_junction_sides ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="returnvalue">GtkJunctionSides</span></a>    gtk_style_context_get_junction_sides
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the sides where rendered elements connect visually with others.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the junction sides</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-path"></a><h3>gtk_style_context_get_path ()</h3>
<pre class="programlisting">const <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="returnvalue">GtkWidgetPath</span></a> * gtk_style_context_get_path        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the widget path used for style matching.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-property"></a><h3>gtk_style_context_get_property ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_property      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
<p>
Gets a style property from <em class="parameter"><code>context</code></em> for the given state.
</p>
<p>
When <em class="parameter"><code>value</code></em> is no longer needed, <a href="../gobject/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called
to free any allocated memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property</code></em> :</span></p></td>
<td>style property name</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the property value for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>return location for the style property value. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-screen"></a><h3>gtk_style_context_get_screen ()</h3>
<pre class="programlisting"><a href="../gdk3/GdkScreen.html"><span class="returnvalue">GdkScreen</span></a> *         gtk_style_context_get_screen        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> to which <em class="parameter"><code>context</code></em> is attached.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-state"></a><h3>gtk_style_context_get_state ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="returnvalue">GtkStateFlags</span></a>       gtk_style_context_get_state         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the state used when rendering.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the state flags</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-style"></a><h3>gtk_style_context_get_style ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_style         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>...</code></em>);</pre>
<p>
Retrieves several widget style properties from <em class="parameter"><code>context</code></em> according to the
current style.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>property name /return value pairs, followed by <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-style-property"></a><h3>gtk_style_context_get_style_property ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_style_property
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *property_name</code></em>,
                                                         <em class="parameter"><code><a href="../gobject/gobject-Generic-values.html#GValue"><span class="type">GValue</span></a> *value</code></em>);</pre>
<p>
Gets the value for a widget style property.
</p>
<p>
When <em class="parameter"><code>value</code></em> is no longer needed, <a href="../gobject/gobject-Generic-values.html#g-value-unset"><code class="function">g_value_unset()</code></a> must be called
to free any allocated memory.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>property_name</code></em> :</span></p></td>
<td>the name of the widget style property</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>Return location for the property value</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-style-valist"></a><h3>gtk_style_context_get_style_valist ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_style_valist  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
<p>
Retrieves several widget style properties from <em class="parameter"><code>context</code></em> according to the
current style.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
<td>va_list of property name/return location pairs, followed by <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-valist"></a><h3>gtk_style_context_get_valist ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_valist        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><span class="type">va_list</span> args</code></em>);</pre>
<p>
Retrieves several style property values from <em class="parameter"><code>context</code></em> for a given state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the property values for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>args</code></em> :</span></p></td>
<td>va_list of property name/return location pairs, followed by <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-color"></a><h3>gtk_style_context_get_color ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_color         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
<p>
Gets the foreground color for a given state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the color for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>return value for the foreground color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-background-color"></a><h3>gtk_style_context_get_background_color ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_background_color
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
<p>
Gets the background color for a given state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the color for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>return value for the background color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-border-color"></a><h3>gtk_style_context_get_border_color ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_border_color  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
<p>
Gets the border color for a given state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the color for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>return value for the border color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-border"></a><h3>gtk_style_context_get_border ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_border        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border</code></em>);</pre>
<p>
Gets the border for a given state as a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>.
See <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-BORDER-WIDTH:CAPS" title="GTK_STYLE_PROPERTY_BORDER_WIDTH"><code class="literal">GTK_STYLE_PROPERTY_BORDER_WIDTH</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the border for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>border</code></em> :</span></p></td>
<td>return value for the border settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-padding"></a><h3>gtk_style_context_get_padding ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_padding       (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *padding</code></em>);</pre>
<p>
Gets the padding for a given state as a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>.
See <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-PADDING:CAPS" title="GTK_STYLE_PROPERTY_PADDING"><code class="literal">GTK_STYLE_PROPERTY_PADDING</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the padding for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>padding</code></em> :</span></p></td>
<td>return value for the padding settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-margin"></a><h3>gtk_style_context_get_margin ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_get_margin        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *margin</code></em>);</pre>
<p>
Gets the margin for a given state as a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>.
See <a class="link" href="gtk3-GtkStyleContext.html#GTK-STYLE-PROPERTY-MARGIN:CAPS" title="GTK_STYLE_PROPERTY_MARGIN"><code class="literal">GTK_STYLE_PROPERTY_MARGIN</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the border for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>margin</code></em> :</span></p></td>
<td>return value for the margin settings. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-get-font"></a><h3>gtk_style_context_get_font ()</h3>
<pre class="programlisting">const <a href="../pango/pango-Fonts.html#PangoFontDescription"><span class="returnvalue">PangoFontDescription</span></a> * gtk_style_context_get_font (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> state</code></em>);</pre>
<p>
Returns the font description for a given state. The returned
object is const and will remain valid until the
<span class="type">"changed"</span> signal happens.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to retrieve the font for</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a href="../pango/pango-Fonts.html#PangoFontDescription"><span class="type">PangoFontDescription</span></a> for the given
state.  This object is owned by GTK+ and should not be
freed. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-invalidate"></a><h3>gtk_style_context_invalidate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_invalidate        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Invalidates <em class="parameter"><code>context</code></em> style information, so it will be reconstructed
again.
</p>
<p>
If you're using a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to
call this yourself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-state-is-running"></a><h3>gtk_style_context_state_is_running ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_style_context_state_is_running  (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *progress</code></em>);</pre>
<p>
Returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a transition animation running for the
current region (see <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>).
</p>
<p>
If <em class="parameter"><code>progress</code></em> is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the animation progress will be returned
there, 0.0 means the state is closest to being unset, while 1.0 means
it's closest to being set. This means transition animation will
run from 0 to 1 when <em class="parameter"><code>state</code></em> is being set and from 1 to 0 when
it's being unset.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>a widget state</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>progress</code></em> :</span></p></td>
<td>return location for the transition progress. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if there is a running transition animation for <em class="parameter"><code>state</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-lookup-color"></a><h3>gtk_style_context_lookup_color ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_style_context_lookup_color      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *color_name</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-RGBA-Colors.html#GdkRGBA"><span class="type">GdkRGBA</span></a> *color</code></em>);</pre>
<p>
Looks up and resolves a color name in the <em class="parameter"><code>context</code></em> color map.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color_name</code></em> :</span></p></td>
<td>color name to lookup</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>color</code></em> :</span></p></td>
<td>Return location for the looked up color. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>color_name</code></em> was found and resolved, <a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-lookup-icon-set"></a><h3>gtk_style_context_lookup_icon_set ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet" title="GtkIconSet"><span class="returnvalue">GtkIconSet</span></a> *        gtk_style_context_lookup_icon_set   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre>
<p>
Looks up <em class="parameter"><code>stock_id</code></em> in the icon factories associated to <em class="parameter"><code>context</code></em> and
the default icon factory, returning an icon set if found, otherwise
<a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
<td>an icon name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The looked  up <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSet" title="GtkIconSet"><code class="literal">GtkIconSet</code></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-notify-state-change"></a><h3>gtk_style_context_notify_state_change ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_notify_state_change
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateType" title="enum GtkStateType"><span class="type">GtkStateType</span></a> state</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> state_value</code></em>);</pre>
<p>
Notifies a state change on <em class="parameter"><code>context</code></em>, so if the current style makes use
of transition animations, one will be started so all rendered elements
under <em class="parameter"><code>region_id</code></em> are animated for state <em class="parameter"><code>state</code></em> being set to value
<em class="parameter"><code>state_value</code></em>.
</p>
<p>
The <em class="parameter"><code>window</code></em> parameter is used in order to invalidate the rendered area
as the animation runs, so make sure it is the same window that is being
rendered on by the gtk_render_*() functions.
</p>
<p>
If <em class="parameter"><code>region_id</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, all rendered elements using <em class="parameter"><code>context</code></em> will be
affected by this state transition.
</p>
<p>
As a practical example, a <a class="link" href="gtk3-GtkButton.html#GtkButton" title="struct GtkButton"><span class="type">GtkButton</span></a> notifying a state transition on
the prelight state:
</p>
<pre class="programlisting">
gtk_style_context_notify_state_change (context,
                                       gtk_widget_get_window (widget),
                                       NULL,
                                       GTK_STATE_PRELIGHT,
                                       button-&gt;in_button);
</pre>
<p>
</p>
<p>
Can be handled in the CSS file like this:
</p>
<pre class="programlisting">
GtkButton {
    background-color: #f00
}

GtkButton:hover {
    background-color: #fff;
    transition: 200ms linear
}
</pre>
<p>
</p>
<p>
This combination will animate the button background from red to white
if a pointer enters the button, and back to red if the pointer leaves
the button.
</p>
<p>
Note that <em class="parameter"><code>state</code></em> is used when finding the transition parameters, which
is why the style places the transition under the :hover pseudo-class.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td>
<td>animatable region to notify on, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
See <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em> :</span></p></td>
<td>state to trigger transition for</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state_value</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>state</code></em> is the state we are changing to,
<a href="../glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if we are changing away from it</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-pop-animatable-region"></a><h3>gtk_style_context_pop_animatable_region ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_pop_animatable_region
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Pops an animatable region from <em class="parameter"><code>context</code></em>.
See <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-push-animatable-region"></a><h3>gtk_style_context_push_animatable_region ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_push_animatable_region
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);</pre>
<p>
Pushes an animatable region, so all further gtk_render_*() calls between
this call and the following <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-pop-animatable-region" title="gtk_style_context_pop_animatable_region ()"><code class="function">gtk_style_context_pop_animatable_region()</code></a>
will potentially show transition animations for this region if
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a> is called for a given state,
and the current theme/style defines transition animations for state
changes.
</p>
<p>
The <em class="parameter"><code>region_id</code></em> used must be unique in <em class="parameter"><code>context</code></em> so the theming engine
can uniquely identify rendered elements subject to a state transition.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td>
<td>unique identifier for the animatable region</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-cancel-animations"></a><h3>gtk_style_context_cancel_animations ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_cancel_animations (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> region_id</code></em>);</pre>
<p>
Stops all running animations for <em class="parameter"><code>region_id</code></em> and all animatable
regions underneath.
</p>
<p>
A <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> <em class="parameter"><code>region_id</code></em> will stop all ongoing animations in <em class="parameter"><code>context</code></em>,
when dealing with a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> obtained through
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, this is normally done for you
in all circumstances you would expect all widget to be stopped,
so this should be only used in complex widgets with different
animatable regions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_id</code></em> :</span></p></td>
<td>animatable region to stop, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
See <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-push-animatable-region" title="gtk_style_context_push_animatable_region ()"><code class="function">gtk_style_context_push_animatable_region()</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-scroll-animations"></a><h3>gtk_style_context_scroll_animations ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_scroll_animations (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dx</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> dy</code></em>);</pre>
<p>
This function is analogous to <a href="../gdk3/gdk3-Windows.html#gdk-window-scroll"><code class="function">gdk_window_scroll()</code></a>, and
should be called together with it so the invalidation
areas for any ongoing animation are scrolled together
with it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> used previously in
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-notify-state-change" title="gtk_style_context_notify_state_change ()"><code class="function">gtk_style_context_notify_state_change()</code></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
<td>Amount to scroll in the X axis</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
<td>Amount to scroll in the Y axis</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-remove-provider"></a><h3>gtk_style_context_remove_provider ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_remove_provider   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);</pre>
<p>
Removes <em class="parameter"><code>provider</code></em> from the style providers list in <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-remove-provider-for-screen"></a><h3>gtk_style_context_remove_provider_for_screen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_remove_provider_for_screen
                                                        (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a> *provider</code></em>);</pre>
<p>
Removes <em class="parameter"><code>provider</code></em> from the global style providers list in <em class="parameter"><code>screen</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>provider</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleProvider.html#GtkStyleProvider" title="GtkStyleProvider"><span class="type">GtkStyleProvider</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-reset-widgets"></a><h3>gtk_style_context_reset_widgets ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_reset_widgets     (<em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>
This function recomputes the styles for all widgets under a particular
<a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>. This is useful when some global parameter has changed that
affects the appearance of all widgets, because when a widget gets a new
style, it will both redraw and recompute any cached information about
its appearance. As an example, it is used when the color scheme changes
in the related <a class="link" href="gtk3-GtkSettings.html#GtkSettings" title="GtkSettings"><span class="type">GtkSettings</span></a> object.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-background"></a><h3>gtk_style_context_set_background ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_background    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
<p>
Sets the background of <em class="parameter"><code>window</code></em> to the background pattern or
color specified in <em class="parameter"><code>context</code></em> for its current state.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
<td>a <a href="../gdk3/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-restore"></a><h3>gtk_style_context_restore ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_restore           (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Restores <em class="parameter"><code>context</code></em> state to a previous stage.
See <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-save" title="gtk_style_context_save ()"><code class="function">gtk_style_context_save()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-save"></a><h3>gtk_style_context_save ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_save              (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Saves the <em class="parameter"><code>context</code></em> state, so all modifications done through
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-class" title="gtk_style_context_add_class ()"><code class="function">gtk_style_context_add_class()</code></a>, <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-class" title="gtk_style_context_remove_class ()"><code class="function">gtk_style_context_remove_class()</code></a>,
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-add-region" title="gtk_style_context_add_region ()"><code class="function">gtk_style_context_add_region()</code></a>, <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-remove-region" title="gtk_style_context_remove_region ()"><code class="function">gtk_style_context_remove_region()</code></a>
or <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-set-junction-sides" title="gtk_style_context_set_junction_sides ()"><code class="function">gtk_style_context_set_junction_sides()</code></a> can be reverted in one
go through <a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-restore" title="gtk_style_context_restore ()"><code class="function">gtk_style_context_restore()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-direction"></a><h3>gtk_style_context_set_direction ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_direction     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidget.html#GtkTextDirection" title="enum GtkTextDirection"><span class="type">GtkTextDirection</span></a> direction</code></em>);</pre>
<p>
Sets the reading direction for rendering purposes.
</p>
<p>
If you are using a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to
call this yourself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>direction</code></em> :</span></p></td>
<td>the new direction.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-junction-sides"></a><h3>gtk_style_context_set_junction_sides ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_junction_sides
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJunctionSides" title="enum GtkJunctionSides"><span class="type">GtkJunctionSides</span></a> sides</code></em>);</pre>
<p>
Sets the sides where rendered elements (mostly through
<a class="link" href="gtk3-GtkStyleContext.html#gtk-render-frame" title="gtk_render_frame ()"><code class="function">gtk_render_frame()</code></a>) will visually connect with other visual elements.
</p>
<p>
This is merely a hint that may or may not be honored
by theming engines.
</p>
<p>
Container widgets are expected to set junction hints as appropriate
for their children, so it should not normally be necessary to call
this function manually.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sides</code></em> :</span></p></td>
<td>sides where rendered elements are visually connected to
other elements</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-path"></a><h3>gtk_style_context_set_path ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_path          (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> *path</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a> used for style matching. As a
consequence, the style will be regenerated to match
the new given path.
</p>
<p>
If you are using a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to call
this yourself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkWidgetPath.html#GtkWidgetPath" title="GtkWidgetPath"><span class="type">GtkWidgetPath</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-add-class"></a><h3>gtk_style_context_add_class ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_add_class         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
<p>
Adds a style class to <em class="parameter"><code>context</code></em>, so posterior calls to
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> or any of the gtk_render_*()
functions will make use of this new class for styling.
</p>
<p>
In the CSS file format, a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a> defining an "entry"
class, would be matched by:
</p>
<p>
</p>
<pre class="programlisting">
GtkEntry.entry { ... }
</pre>
<p>
</p>
<p>
While any widget defining an "entry" class would be
matched by:
</p>
<pre class="programlisting">
.entry { ... }
</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td>
<td>class name to use in styling</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-remove-class"></a><h3>gtk_style_context_remove_class ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_remove_class      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
<p>
Removes <em class="parameter"><code>class_name</code></em> from <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td>
<td>class name to remove</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-has-class"></a><h3>gtk_style_context_has_class ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_style_context_has_class         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *class_name</code></em>);</pre>
<p>
Returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> currently has defined the
given class name
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>class_name</code></em> :</span></p></td>
<td>a class name</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> has <em class="parameter"><code>class_name</code></em> defined</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-list-classes"></a><h3>gtk_style_context_list_classes ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_style_context_list_classes      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the list of classes currently defined in <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
strings with the currently defined classes. The contents
of the list are owned by GTK+, but you must free the list
itself with <a href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-add-region"></a><h3>gtk_style_context_add_region ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_add_region        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> flags</code></em>);</pre>
<p>
Adds a region to <em class="parameter"><code>context</code></em>, so posterior calls to
<a class="link" href="gtk3-GtkStyleContext.html#gtk-style-context-get" title="gtk_style_context_get ()"><code class="function">gtk_style_context_get()</code></a> or any of the gtk_render_*()
functions will make use of this new region for styling.
</p>
<p>
In the CSS file format, a <a class="link" href="gtk3-GtkTreeView.html#GtkTreeView" title="struct GtkTreeView"><span class="type">GtkTreeView</span></a> defining a "row"
region, would be matched by:
</p>
<p>
</p>
<pre class="programlisting">
GtkTreeView row { ... }
</pre>
<p>
</p>
<p>
Pseudo-classes are used for matching <em class="parameter"><code>flags</code></em>, so the two
following rules:
</p>
<pre class="programlisting">
GtkTreeView row:nth-child (even) { ... }
GtkTreeView row:nth-child (odd) { ... }
</pre>
<p>
</p>
<p>
would apply to even and odd rows, respectively.
</p>
<p>
</p>
<div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Note</h3>
<p>Region names must only contain lowercase letters
and '-', starting always with a lowercase letter.</p>
</div>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td>
<td>region name to use in styling</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>flags that apply to the region</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-remove-region"></a><h3>gtk_style_context_remove_region ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_remove_region     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>);</pre>
<p>
Removes a region from <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td>
<td>region name to unset</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-has-region"></a><h3>gtk_style_context_has_region ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_style_context_has_region        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *region_name</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkRegionFlags" title="enum GtkRegionFlags"><span class="type">GtkRegionFlags</span></a> *flags_return</code></em>);</pre>
<p>
Returns <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>context</code></em> has the region defined.
If <em class="parameter"><code>flags_return</code></em> is not <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it is set to the flags
affecting the region.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>region_name</code></em> :</span></p></td>
<td>a region name</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags_return</code></em> :</span></p></td>
<td>return location for region flags. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if region is defined</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-list-regions"></a><h3>gtk_style_context_list_regions ()</h3>
<pre class="programlisting"><a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_style_context_list_regions      (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>);</pre>
<p>
Returns the list of regions currently defined in <em class="parameter"><code>context</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../glib/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> of
strings with the currently defined regions. The contents
of the list are owned by GTK+, but you must free the list
itself with <a href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a> when you are done with it. <span class="annotation">[<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> utf8]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-screen"></a><h3>gtk_style_context_set_screen ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_screen        (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a> *screen</code></em>);</pre>
<p>
Attaches <em class="parameter"><code>context</code></em> to the given screen.
</p>
<p>
The screen is used to add style information from 'global' style
providers, such as the screens <a class="link" href="gtk3-GtkSettings.html#GtkSettings" title="GtkSettings"><span class="type">GtkSettings</span></a> instance.
</p>
<p>
If you are using a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> returned from
<a class="link" href="gtk3-GtkWidget.html#gtk-widget-get-style-context" title="gtk_widget_get_style_context ()"><code class="function">gtk_widget_get_style_context()</code></a>, you do not need to
call this yourself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkScreen.html"><span class="type">GdkScreen</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-style-context-set-state"></a><h3>gtk_style_context_set_state ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_style_context_set_state         (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkStateFlags" title="enum GtkStateFlags"><span class="type">GtkStateFlags</span></a> flags</code></em>);</pre>
<p>
Sets the state to be used when rendering with any
of the gtk_render_*() functions.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
<td>state to represent</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="GtkBorder"></a><h3>struct GtkBorder</h3>
<pre class="programlisting">struct GtkBorder {
  gint16 left;
  gint16 right;
  gint16 top;
  gint16 bottom;
};
</pre>
<p>
A struct that specifies a border around a rectangular area
that can be of different width on each side.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="../glib/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder.left"></a>left</code></em>;</span></p></td>
<td>The width of the left border</td>
</tr>
<tr>
<td><p><span class="term"><a href="../glib/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder.right"></a>right</code></em>;</span></p></td>
<td>The width of the right border</td>
</tr>
<tr>
<td><p><span class="term"><a href="../glib/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder.top"></a>top</code></em>;</span></p></td>
<td>The width of the top border</td>
</tr>
<tr>
<td><p><span class="term"><a href="../glib/glib-Basic-Types.html#gint16"><span class="type">gint16</span></a> <em class="structfield"><code><a name="GtkBorder.bottom"></a>bottom</code></em>;</span></p></td>
<td>The width of the bottom border</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-border-new"></a><h3>gtk_border_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *         gtk_border_new                      (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Allocates a new <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> structure and initializes its elements to zero.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly allocated <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>. Free with <a class="link" href="gtk3-GtkStyleContext.html#gtk-border-free" title="gtk_border_free ()"><code class="function">gtk_border_free()</code></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-border-copy"></a><h3>gtk_border_copy ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="returnvalue">GtkBorder</span></a> *         gtk_border_copy                     (<em class="parameter"><code>const <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);</pre>
<p>
Copies a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>border_</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a copy of <em class="parameter"><code>border_</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-border-free"></a><h3>gtk_border_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_border_free                     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> *border_</code></em>);</pre>
<p>
Frees a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a> structure.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>border_</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkBorder" title="struct GtkBorder"><span class="type">GtkBorder</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-arrow"></a><h3>gtk_render_arrow ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_arrow                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> angle</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> size</code></em>);</pre>
<p>
Renders an arrow pointing to <em class="parameter"><code>angle</code></em>.
</p>
<p>
</p>
<div class="example">
<a name="id3247314"></a><p class="title"><b>Example 12. Typical arrow rendering at 0, 1⁄2 π, π and 3⁄2 π</b></p>
<div class="example-contents"><img src="arrows.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
<td>arrow angle from 0 to 2 * <a href="../glib/glib-Numerical-Definitions.html#G-PI:CAPS"><code class="literal">G_PI</code></a>, being 0 the arrow pointing to the north</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>Center X for the render area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Center Y for the render area</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>square side for render area</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-background"></a><h3>gtk_render_background ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_background               (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders the background of an element.
</p>
<p>
</p>
<div class="example">
<a name="id3247594"></a><p class="title"><b>Example 13. Typical background rendering, showing the effect of
<em class="parameter"><code>background-image</code></em>,
<em class="parameter"><code>border-width</code></em> and
<em class="parameter"><code>border-radius</code></em></b></p>
<div class="example-contents"><img src="background.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0.</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-check"></a><h3>gtk_render_check ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_check                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders a checkmark (as in a <a class="link" href="gtk3-GtkCheckButton.html#GtkCheckButton" title="struct GtkCheckButton"><span class="type">GtkCheckButton</span></a>).
</p>
<p>
The <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a> state determines whether the check is
on or off, and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><code class="literal">GTK_STATE_FLAG_INCONSISTENT</code></a> determines whether it
should be marked as undefined.
</p>
<p>
</p>
<div class="example">
<a name="id3247919"></a><p class="title"><b>Example 14. Typical checkmark rendering</b></p>
<div class="example-contents"><img src="checks.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-expander"></a><h3>gtk_render_expander ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_expander                 (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders an expander (as used in <a class="link" href="gtk3-GtkTreeView.html#GtkTreeView" title="struct GtkTreeView"><span class="type">GtkTreeView</span></a> and <a class="link" href="gtk3-GtkExpander.html#GtkExpander" title="struct GtkExpander"><span class="type">GtkExpander</span></a>) in the area
defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. The state <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a>
determines whether the expander is collapsed or expanded.
</p>
<p>
</p>
<div class="example">
<a name="id3248242"></a><p class="title"><b>Example 15. Typical expander rendering</b></p>
<div class="example-contents"><img src="expanders.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-extension"></a><h3>gtk_render_extension ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_extension                (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>);</pre>
<p>
Renders a extension (as in a <a class="link" href="gtk3-GtkNotebook.html#GtkNotebook" title="struct GtkNotebook"><span class="type">GtkNotebook</span></a> tab) in the rectangle
defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. The side where the extension
connects to is defined by <em class="parameter"><code>gap_side</code></em>.
</p>
<p>
</p>
<div class="example">
<a name="id3248570"></a><p class="title"><b>Example 16. Typical extension rendering</b></p>
<div class="example-contents"><img src="extensions.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gap_side</code></em> :</span></p></td>
<td>side where the gap is</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-focus"></a><h3>gtk_render_focus ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_focus                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders a focus indicator on the rectangle determined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>.
</p>
<div class="example">
<a name="id3248879"></a><p class="title"><b>Example 17. Typical focus rendering</b></p>
<div class="example-contents"><img src="focus.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-frame"></a><h3>gtk_render_frame ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_frame                    (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders a frame around the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>.
</p>
<p>
</p>
<div class="example">
<a name="id3249176"></a><p class="title"><b>Example 18. Examples of frame rendering, showing the effect of
<em class="parameter"><code>border-image</code></em>,
<em class="parameter"><code>border-color</code></em>,
<em class="parameter"><code>border-width</code></em>,
<em class="parameter"><code>border-radius</code></em> and
junctions</b></p>
<div class="example-contents"><img src="frames.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-frame-gap"></a><h3>gtk_render_frame_gap ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_frame_gap                (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkPositionType" title="enum GtkPositionType"><span class="type">GtkPositionType</span></a> gap_side</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy0_gap</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xy1_gap</code></em>);</pre>
<p>
Renders a frame around the rectangle defined by (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>),
leaving a gap on one side. <em class="parameter"><code>xy0_gap</code></em> and <em class="parameter"><code>xy1_gap</code></em> will mean X coordinates
for <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-TOP:CAPS"><code class="literal">GTK_POS_TOP</code></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-BOTTOM:CAPS"><code class="literal">GTK_POS_BOTTOM</code></a> gap sides, and Y coordinates for
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-LEFT:CAPS"><code class="literal">GTK_POS_LEFT</code></a> and <a class="link" href="gtk3-Standard-Enumerations.html#GTK-POS-RIGHT:CAPS"><code class="literal">GTK_POS_RIGHT</code></a>.
</p>
<p>
</p>
<div class="example">
<a name="id3249607"></a><p class="title"><b>Example 19. Typical rendering of a frame with a gap</b></p>
<div class="example-contents"><img src="frame-gap.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>gap_side</code></em> :</span></p></td>
<td>side where the gap is</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xy0_gap</code></em> :</span></p></td>
<td>initial coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>) for the gap</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xy1_gap</code></em> :</span></p></td>
<td>end coordinate (X or Y depending on <em class="parameter"><code>gap_side</code></em>) for the gap</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-handle"></a><h3>gtk_render_handle ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_handle                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders a handle (as in <a class="link" href="gtk3-GtkHandleBox.html#GtkHandleBox" title="struct GtkHandleBox"><span class="type">GtkHandleBox</span></a>, <a class="link" href="gtk3-GtkPaned.html#GtkPaned" title="struct GtkPaned"><span class="type">GtkPaned</span></a> and
<a class="link" href="gtk3-GtkWindow.html#GtkWindow" title="GtkWindow"><span class="type">GtkWindow</span></a>'s resize grip), in the rectangle
determined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>.
</p>
<p>
</p>
<div class="example">
<a name="id3249991"></a><p class="title"><b>Example 20. Handles rendered for the paned and grip classes</b></p>
<div class="example-contents"><img src="handles.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-layout"></a><h3>gtk_render_layout ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_layout                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> *layout</code></em>);</pre>
<p>
Renders <em class="parameter"><code>layout</code></em> on the coordinates <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>layout</code></em> :</span></p></td>
<td>the <a href="../pango/pango-Layout-Objects.html#PangoLayout"><span class="type">PangoLayout</span></a> to render</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-line"></a><h3>gtk_render_line ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_line                     (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y0</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x1</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y1</code></em>);</pre>
<p>
Renders a line from (x0, y0) to (x1, y1).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
<td>X coordinate for the origin of the line</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
<td>Y coordinate for the origin of the line</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
<td>X coordinate for the end of the line</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
<td>Y coordinate for the end of the line</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-option"></a><h3>gtk_render_option ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_option                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders an option mark (as in a <a class="link" href="gtk3-GtkRadioButton.html#GtkRadioButton" title="struct GtkRadioButton"><span class="type">GtkRadioButton</span></a>), the <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a>
state will determine whether the option is on or off, and
<a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-INCONSISTENT:CAPS"><code class="literal">GTK_STATE_FLAG_INCONSISTENT</code></a> whether it should be marked as undefined.
</p>
<p>
</p>
<div class="example">
<a name="id3250787"></a><p class="title"><b>Example 21. Typical option mark rendering</b></p>
<div class="example-contents"><img src="options.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-slider"></a><h3>gtk_render_slider ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_slider                   (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkOrientation" title="enum GtkOrientation"><span class="type">GtkOrientation</span></a> orientation</code></em>);</pre>
<p>
Renders a slider (as in <a class="link" href="gtk3-GtkScale.html#GtkScale" title="struct GtkScale"><span class="type">GtkScale</span></a>) in the rectangle defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>. <em class="parameter"><code>orientation</code></em> defines whether the slider is vertical
or horizontal.
</p>
<p>
</p>
<div class="example">
<a name="id3251114"></a><p class="title"><b>Example 22. Typical slider rendering</b></p>
<div class="example-contents"><img src="sliders.png"></div>
</div>
<p><br class="example-break">
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>orientation</code></em> :</span></p></td>
<td>orientation of the slider</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-activity"></a><h3>gtk_render_activity ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_render_activity                 (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code><a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> width</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> height</code></em>);</pre>
<p>
Renders an activity area (Such as in <a class="link" href="gtk3-GtkSpinner.html#GtkSpinner" title="struct GtkSpinner"><span class="type">GtkSpinner</span></a> or the
fill line in <a class="link" href="gtk3-GtkRange.html#GtkRange" title="struct GtkRange"><span class="type">GtkRange</span></a>), the state <a class="link" href="gtk3-Standard-Enumerations.html#GTK-STATE-FLAG-ACTIVE:CAPS"><code class="literal">GTK_STATE_FLAG_ACTIVE</code></a>
determines whether there is activity going on.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
<td>a <a href="../cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>X origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>Y origin of the rectangle</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>rectangle width</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
<td>rectangle height</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-render-icon-pixbuf"></a><h3>gtk_render_icon_pixbuf ()</h3>
<pre class="programlisting"><a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *         gtk_render_icon_pixbuf              (<em class="parameter"><code><a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a> *context</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> *source</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> size</code></em>);</pre>
<p>
Renders the icon specified by <em class="parameter"><code>source</code></em> at the given <em class="parameter"><code>size</code></em>, returning the result
in a pixbuf.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>context</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkStyleContext.html#GtkStyleContext" title="struct GtkStyleContext"><span class="type">GtkStyleContext</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSource" title="GtkIconSource"><span class="type">GtkIconSource</span></a> specifying the icon to render</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
<td>the size to render the icon at. A size of (GtkIconSize) -1
means render at the size of the source and don't scale. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> int]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a newly-created <a href="../gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> containing the rendered icon. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>